package com.fzy.designpattern.decorator;

public class FlyPerson implements Ability {

    private Ability ability;

    public FlyPerson(Ability ability) {
        this.ability = ability;
    }

    @Override
    public void whatAblity() {
        ability.whatAblity();
        System.out.println("会飞的能力");

    }

}
